<!DOCTYPE html>
<html lang="en"><html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:fragment="head">
    <el-menu
            :default-active="activeIndex"
            class="el-menu-demo"
            mode="horizontal"
            @select="handleSelect"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b">
        <el-menu-item><a href="/public/index">首页</a></el-menu-item>
        <el-menu-item><a href="/login/go2Login">登录</a></el-menu-item>
        <el-menu-item><a href="/user/go2Add">注册用户</a></el-menu-item>
        <el-menu-item><div th:style="${session.SPRING_SECURITY_CONTEXT!=null}?'padding:0px 0px 0px 0px;':'display:none;'"><a href="/client/blog">个人中心</a></div></el-menu-item>
        <el-menu-item><div th:style="${session.SPRING_SECURITY_CONTEXT!=null}?'padding:0px 0px 0px 0px;':'display:none;'"><a href="/logout">退出</a></div></el-menu-item>
    </el-menu>
</div>
</body>
</html>